package com.rdc.example.service;

import com.rdc.example.bean.PageBean;
import com.rdc.example.bean.Result;
import com.rdc.example.bean.dto.PlayListDTO;
import org.apache.commons.fileupload.FileItem;

import java.util.List;

public interface PlayListService {
    Result insertPlayList(PlayListDTO playListDTO,List<FileItem> fileItems) throws Exception;

    Result deletePlayList(Integer userId, Integer playListId) throws Exception;

    Result updatePlayList(PlayListDTO playListDTO) throws Exception;

    Result turnInOrOutPlaylist(Integer playListId, Integer songId) throws Exception;

    PageBean<PlayListDTO> getPlayListListByUserId(Integer userId, Integer currentPage, Integer pageSize) throws Exception;

    PageBean<PlayListDTO> searchPlaylistsByTitle(String keyword, Integer currentPage, Integer pageSize) throws Exception;
}
